Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Added InputFormatter base type #1973

Merged
merged 1 commit into from
Feb 12, 2015
Merged

Added InputFormatter base type #1973

merged 1 commit into from
Feb 12, 2015

Conversation

ajaybhargavb
Copy link
Contributor

@ghost ghost added the cla-required label Feb 6, 2015
/// <param name="context">The <see cref="InputFormatterContext"/> associated with the call.</param>
/// <returns>A task which can read the request body.</returns>
public abstract Task<object> ReadRequestBodyAsync(InputFormatterContext context);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should you also move the SelectCharacterEncoding method to this base class?...Ideally I would like to see a test where you create a custom formatter using this base type just to see how the experience would be like...currently that picture is missing...please update the PR with it..

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved. Will update tests shortly.

@ajaybhargavb ajaybhargavb force-pushed the input-formatter branch 2 times, most recently from 3fe347a to a3f04aa Compare February 7, 2015 00:26
@ghost ghost added cla-not-required and removed cla-required labels Feb 10, 2015
/// <summary>
/// Initializes a new instance of the <see cref="InputFormatter"/> class.
/// </summary>
protected InputFormatter()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't need this constructor.

Instead see below comment

@yishaigalatzer
Copy link
Contributor

:shipit: when comments are addressed and @kichalla is happy.

Lets discuss having the StringInputFormatter be in the core system. File an issue, and consider using StringBuilder on top of a string as the object to bind to.

@@ -0,0 +1,111 @@
using System;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add license header

@kichalla
Copy link
Member

:shipit:

@ajaybhargavb
Copy link
Contributor Author

#2002

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants